﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="HTTPRedirect.aspx.cs" Inherits="HTTPRedirect" %>

<%@ Register Src="~/controls/usrNoJS.ascx" TagName="usrNoJS" TagPrefix="ucNoJS" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <!-- beginning of HttpRedirect.htm file -->
    <script type="text/javascript">
    
    function redirectToHttps()
    {
        var httpURL = window.location.hostname + window.location.pathname;
        var httpsURL = "https://" + httpURL ;
        if(httpsURL.toUpperCase().indexOf("HTTPREDIRECT.ASPX") == -1)
            window.location = httpsURL ;
        else
            window.location = "http://www.gluaygluay.com/404.aspx";
    }
    redirectToHttps();
    </script>

    <style type="text/css">
        BODY
        {
            font: 8pt/12pt verdana;
        }
        H1
        {
            font: 13pt/15pt verdana;
        }
        H2
        {
            font: 8pt/12pt verdana;
        }
        A:link
        {
            color: red;
        }
        A:visited
        {
            color: maroon;
        }
    </style>
    <!-- end of HttpRedirect.htm file -->
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Image ID="Image1" runat="server" ImageUrl="~/images/public/logo/gluaygluay.png"
            AlternateText="GluayGluay.com Logo" />
        <ucNoJS:usrNoJS ID="usrNoJS1" runat="server" />
        <hr />
        <table width="500" border="0" cellspacing="10">
            <tr>
                <td>
                    <h1>
                        The page must be viewed over a secure channel</h1>
                    The page you are trying to access is secured with Secure Sockets Layer (SSL).
                    <hr />
                    <p>
                        Please try the following:</p>
                    <ul>
                        <li>Type <b>https://</b> at the beginning of the address you are attempting to reach
                            and press ENTER.</li>
                    </ul>
                    <h2>
                        HTTP Error 403.4 - Forbidden: SSL is required to view this resource.<br />
                        Internet Information Services (IIS)</h2>
                    <hr />
                    <asp:HyperLink runat="server" ID="hplTryWithSSL" NavigateUrl="/">Try again with SSL</asp:HyperLink>&nbsp;&nbsp;&nbsp;
                    <asp:HyperLink runat="server" ID="hplRedirectLink" NavigateUrl="/">GluayGluay.com Home Page</asp:HyperLink>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
